package org.indt.scrum.model;
// default package
// Generated Jun 12, 2009 8:05:37 AM by Hibernate Tools 3.2.2.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbSprint generated by hbm2java
 */
@Entity
@Table(name = "tb_sprint", catalog = "scrumtool")
public class Sprint implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5911134121536763198L;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SPRINT_ID", unique = true, nullable = false)
	private Integer sprintId;
	
	@Column(name = "PROJECT_ID", nullable = false)
	private int projectId;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "START_DATE", length = 0)
	private Date startDate;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "FINISH_DATE", length = 0)
	private Date finishDate;
	
	@Column(name = "SPRINT_GOAL", length = 250)
	private String sprintGoal;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "SR_DATE", length = 0)
	private Date srDate;
	
	@Temporal(TemporalType.TIME)
	@Column(name = "SR_TIME", length = 0)
	private Date srTime;
	
	@Column(name = "BACKLOGREVIEWD", length = 1)
	private Character backlogreviewd;
	
	@Column(name = "GOAL_ACHIEVED", length = 1)
	private Character goalAchieved;
	
	@Column(name = "NEXT_GOAL", length = 250)
	private String nextGoal;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "PLAN_DATE", length = 0)
	private Date planDate;
	
	@Temporal(TemporalType.TIME)
	@Column(name = "PLAN_TIME", length = 0)
	private Date planTime;
	
	@Column(name = "PLAN_PLACE", length = 60)
	private String planPlace;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "SP1_DATE", length = 0)
	private Date sp1Date;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "SP1_TIME", length = 0)
	private Date sp1Time;
	
	@Column(name = "SP1_PLACE", length = 60)
	private String sp1Place;
	
	@Column(name = "SP1_GOAL", length = 250)
	private String sp1Goal;
	
	@Temporal(TemporalType.TIME)
	@Column(name = "DAILY_TIME", length = 0)
	private Date dailyTime;
	
	@Column(name = "DAILY_DURATION")
	private Integer dailyDuration;
	
	@Column(name = "DAILY_PLACE", length = 60)
	private String dailyPlace;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "SPRETRO_DATE", length = 0)
	private Date spretroDate;
	
	@Temporal(TemporalType.TIME)
	@Column(name = "SPRETRO_TIME", length = 0)
	private Date spretroTime;
	
	@Column(name = "SPRETRO_PLACE", length = 60)
	private String spretroPlace;
	
	@Temporal(TemporalType.DATE)
	@Column(name = "SP2_DATE", length = 0)
	private Date sp2Date;
	
	@Temporal(TemporalType.TIME)
	@Column(name = "SP2_TIME", length = 0)
	private Date sp2Time;
	
	@Column(name = "SP2_PLACE", length = 60)
	private String sp2Place;
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "tbSprint")
	private Set<SelectedBacklog> selectedBacklogs = new HashSet<SelectedBacklog> (0);

	public Sprint() {
	}

	public Sprint(int projectId) {
		this.projectId = projectId;
	}

	public Sprint(int projectId, Date startDate, Date finishDate,
			String sprintGoal, Date srDate, Date srTime,
			Character backlogreviewd, Character goalAchieved, String nextGoal,
			Date planDate, Date planTime, String planPlace, Date sp1Date,
			Date sp1Time, String sp1Place, String sp1Goal, Date dailyTime,
			Integer dailyDuration, String dailyPlace, Date spretroDate,
			Date spretroTime, String spretroPlace, Date sp2Date, Date sp2Time,
			String sp2Place, Set<SelectedBacklog> selectedBacklogs) {
		this.projectId = projectId;
		this.startDate = startDate;
		this.finishDate = finishDate;
		this.sprintGoal = sprintGoal;
		this.srDate = srDate;
		this.srTime = srTime;
		this.backlogreviewd = backlogreviewd;
		this.goalAchieved = goalAchieved;
		this.nextGoal = nextGoal;
		this.planDate = planDate;
		this.planTime = planTime;
		this.planPlace = planPlace;
		this.sp1Date = sp1Date;
		this.sp1Time = sp1Time;
		this.sp1Place = sp1Place;
		this.sp1Goal = sp1Goal;
		this.dailyTime = dailyTime;
		this.dailyDuration = dailyDuration;
		this.dailyPlace = dailyPlace;
		this.spretroDate = spretroDate;
		this.spretroTime = spretroTime;
		this.spretroPlace = spretroPlace;
		this.sp2Date = sp2Date;
		this.sp2Time = sp2Time;
		this.sp2Place = sp2Place;
		this.selectedBacklogs = selectedBacklogs;
	}


	public Integer getSprintId() {
		return this.sprintId;
	}

	public void setSprintId(Integer sprintId) {
		this.sprintId = sprintId;
	}

	
	public int getProjectId() {
		return this.projectId;
	}

	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}


	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}


	public Date getFinishDate() {
		return this.finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}


	public String getSprintGoal() {
		return this.sprintGoal;
	}

	public void setSprintGoal(String sprintGoal) {
		this.sprintGoal = sprintGoal;
	}


	public Date getSrDate() {
		return this.srDate;
	}

	public void setSrDate(Date srDate) {
		this.srDate = srDate;
	}


	public Date getSrTime() {
		return this.srTime;
	}

	public void setSrTime(Date srTime) {
		this.srTime = srTime;
	}


	public Character getBacklogreviewd() {
		return this.backlogreviewd;
	}

	public void setBacklogreviewd(Character backlogreviewd) {
		this.backlogreviewd = backlogreviewd;
	}

	
	public Character getGoalAchieved() {
		return this.goalAchieved;
	}

	public void setGoalAchieved(Character goalAchieved) {
		this.goalAchieved = goalAchieved;
	}


	public String getNextGoal() {
		return this.nextGoal;
	}

	public void setNextGoal(String nextGoal) {
		this.nextGoal = nextGoal;
	}


	public Date getPlanDate() {
		return this.planDate;
	}

	public void setPlanDate(Date planDate) {
		this.planDate = planDate;
	}


	public Date getPlanTime() {
		return this.planTime;
	}

	public void setPlanTime(Date planTime) {
		this.planTime = planTime;
	}


	public String getPlanPlace() {
		return this.planPlace;
	}

	public void setPlanPlace(String planPlace) {
		this.planPlace = planPlace;
	}


	public Date getSp1Date() {
		return this.sp1Date;
	}

	public void setSp1Date(Date sp1Date) {
		this.sp1Date = sp1Date;
	}


	public Date getSp1Time() {
		return this.sp1Time;
	}

	public void setSp1Time(Date sp1Time) {
		this.sp1Time = sp1Time;
	}

	
	public String getSp1Place() {
		return this.sp1Place;
	}

	public void setSp1Place(String sp1Place) {
		this.sp1Place = sp1Place;
	}

	
	public String getSp1Goal() {
		return this.sp1Goal;
	}

	public void setSp1Goal(String sp1Goal) {
		this.sp1Goal = sp1Goal;
	}


	public Date getDailyTime() {
		return this.dailyTime;
	}

	public void setDailyTime(Date dailyTime) {
		this.dailyTime = dailyTime;
	}


	public Integer getDailyDuration() {
		return this.dailyDuration;
	}

	public void setDailyDuration(Integer dailyDuration) {
		this.dailyDuration = dailyDuration;
	}

	
	public String getDailyPlace() {
		return this.dailyPlace;
	}

	public void setDailyPlace(String dailyPlace) {
		this.dailyPlace = dailyPlace;
	}

	
	public Date getSpretroDate() {
		return this.spretroDate;
	}

	public void setSpretroDate(Date spretroDate) {
		this.spretroDate = spretroDate;
	}


	public Date getSpretroTime() {
		return this.spretroTime;
	}

	public void setSpretroTime(Date spretroTime) {
		this.spretroTime = spretroTime;
	}

	
	public String getSpretroPlace() {
		return this.spretroPlace;
	}

	public void setSpretroPlace(String spretroPlace) {
		this.spretroPlace = spretroPlace;
	}


	public Date getSp2Date() {
		return this.sp2Date;
	}

	public void setSp2Date(Date sp2Date) {
		this.sp2Date = sp2Date;
	}


	public Date getSp2Time() {
		return this.sp2Time;
	}

	public void setSp2Time(Date sp2Time) {
		this.sp2Time = sp2Time;
	}

	
	public String getSp2Place() {
		return this.sp2Place;
	}

	public void setSp2Place(String sp2Place) {
		this.sp2Place = sp2Place;
	}

	
	public Set<SelectedBacklog> getSelectedBacklogs() {
		return this.selectedBacklogs;
	}

	public void setSelectedBacklogs(Set<SelectedBacklog> selectedBacklogs) {
		this.selectedBacklogs = selectedBacklogs;
	}

}
